<div class="rk-panel global-search-panel" style="display:block">
    <div class="global-search-body">
        <div class="global-search-input">
            <div class="fuzzy_search_input" id="fuzzy_search_input">
                <input type="text" class="word_input" value="{{data.key}}" id="word_input" act="word_input">
                <a class="search_btn" act="search_btn" href="#"></a>
            </div>
        </div>

        <div id="global-search—tabs" class="global-search ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible">
            <ul>
                {{if data.crmPermission == 1 && (!data.setting || data.setting.crm)}}
                <li act="global-search—tabs_parent" parentTabName="crm">
                    {{if SESSION.tenantType == 1}}
                        <a href="#global-search-tabs-1">{{'ALLSEARCH_BUSINESS_DATA' | i18n}}</a>
                    {{else}}
                        <a href="#global-search-tabs-1">{{'ALLSEARCH_CRM_DATA' | i18n}}</a>
                    {{/if}}
                </li>
                {{/if}}
                {{if !data.setting || data.setting.dynamic}}
                    <li act="global-search—tabs_parent" parentTabName="dynamic">
                        <a href="#global-search-tabs-2">{{'OBJECT_DYNAMIC' | i18n}}</a>
                    </li>
                {{/if}}
                {{if !data.setting || data.setting.topic}}
                <li act="global-search—tabs_parent" parentTabName="topic">
                    <a href="#global-search-tabs-3">{{'OBJECT_TOPIC' | i18n}}</a>
                </li>
                {{/if}}
            </ul>

            {{if data.crmPermission == 1  && (!data.setting || data.setting.crm) }}
            <div id="global-search-tabs-1" class="ui-tabs-panel ui-widget-content ui-corner-bottom"></div>
            {{/if}}

            {{if !data.setting || data.setting.dynamic}}
            <div id="global-search-tabs-2">
                <div class="fuzzy_search_content">
                    <div class="fuzzy_container">
                        <div class="fuzzy_filter">
                            <ul class="detail_main_nav clear" style="display:block">
                            {{if !data.setting || (data.setting.dynamic && data.setting.dynamic.message)}}
                                <li class="hover" act="dynamic_message">
                                    <a href="javascript:;" title="" act="dynamic_tab" tabName="dynamic_message">{{ 'search_message' | i18n }}</a>
                                    <span class="tip_number" act="dynamic_message_number"></span>
                                </li>
                            {{/if}}
                            {{if !data.setting || (data.setting.dynamic && data.setting.dynamic.document)}}
                                <li act="dynamic_file">
                                    <a href="javascript:;" title="" act="dynamic_tab" tabName="dynamic_file">{{ 'search_file' | i18n }}</a>
                                    <span class="tip_number" act="dynamic_file_number"></span>
                                </li>
                            {{/if}}
                            {{if !data.setting || (data.setting.dynamic && data.setting.dynamic.blog)}}
                                <li act="dynamic_blog">
                                    <a href="javascript:;" title="" act="dynamic_tab" tabName="dynamic_blog">{{ 'search_blog' | i18n }}</a>
                                    <span class="tip_number" act="dynamic_blog_number"></span>
                                </li>
                            {{/if}}
                            {{if !data.setting || (data.setting.dynamic && data.setting.dynamic.praise)}}
                                <li act="dynamic_praise">
                                    <a href="javascript:;" title="" act="dynamic_tab" tabName="dynamic_praise">{{ 'search_Praise' | i18n }}</a>
                                    <span class="tip_number" act="dynamic_praise_number"></span>
                                </li>
                            {{/if}}
                            {{if !data.setting || (data.setting.dynamic && data.setting.dynamic.answer)}}
                                <li act="dynamic_question">
                                    <a href="javascript:;" title="" act="dynamic_tab" tabName="dynamic_question">{{ 'search_questions_answers' | i18n }}</a>
                                    <span class="tip_number" act="dynamic_question_number"></span>
                                </li>
                            {{/if}}
                            </ul>
                        </div>

                        <!--<div class="rk-dynamic-list" act="rk-dynamic-list-global-search">-->
                            <div class="rk-dynamic-list" tabName="global-search-tabs-2-content-dynamic_message" style="display:block" act="global-search-tabs-2-content">
                            </div>
                            <div class="rk-dynamic-list" tabName="global-search-tabs-2-content-dynamic_file" style="display:block" act="global-search-tabs-2-content">
                            </div>
                            <div class="rk-dynamic-list" tabName="global-search-tabs-2-content-dynamic_blog" style="display:block" act="global-search-tabs-2-content">
                            </div>
                            <div class="rk-dynamic-list" tabName="global-search-tabs-2-content-dynamic_praise" style="display:block" act="global-search-tabs-2-content">
                            </div>
                            <div class="rk-dynamic-list" tabName="global-search-tabs-2-content-dynamic_question" style="display:block" act="global-search-tabs-2-content">
                            </div>
                        <!--</div>-->

                    </div>
                </div>
            </div>
            {{/if}}

            <div id="global-search-tabs-3">
                <span act="search-count">{{ 'search_Search_results_counts' | i18n }}<span act="search-count-number">{{if !data.haveCrmData && !data.haveDynamicData && !data.haveTopic}}0{{/if}}</span>{{ 'search_Search_results_counts_1' | i18n }}</span>
                <div id="global-search-tabs-3-content" class="fuzzy_search_content"></div>
            </div>
        </div>


    </div>
</div>